<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/12/15
  Time: 22:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>添加文章分类</title>
</head>
<body>
<%--页眉--%>
<jsp:include page="/layoutHeader.jsp"/>
<table border="1">
    <tr>
        <td>id</td>
        <td>名称</td>
        <td>创建时间</td>
        <td>修改时间</td>
        <td>操作</td>
    </tr>
    <c:forEach items="${articleClass}" var="ac">
        <tr>
            <td>${ac.id}</td>
            <td>${ac.name}</td>
            <td>${ac.createTime}</td>
            <td>${ac.updateTime}</td>
            <td>
                <a href="user?a=articleClassDelete&id=${ac.id}">删除</a>
                <a href="user?a=articleClassUpdate&id=${ac.id}">修改</a>
            </td>
        </tr>
    </c:forEach>
</table>
<hr>
<h2>添加分类</h2>
<form action="user" method="post">
    <input name="a" value="articleClassAdd" type="hidden">
    名称：<input name="name">&nbsp;&nbsp;&nbsp;&nbsp;
    <button type="submit">添加</button>
</form>

</body>
</html>
